<!-- BEGIN PAGE HEADER-->
<?php $this->load->view('partials/breadcrumb.tpl')?>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
	<div class="col-xs-12 ">
		<!-- BEGIN SAMPLE FORM PORTLET-->
		<div class="portlet box green ">
			<?=edit_form_caption(l($thisMethod).'游戏')?>
			<div class="portlet-body form">
				<?=form_open('', Array('class'=>'form-horizontal', 'role'=>'form', 'id'=>'form_edit', 'data-category-id'=>$obj->id))?>
					<input type="hidden" id="update_time" name="update_time" value="<?=set_value('update_time', $obj->update_time)?>" />
					<div class="form-body">
						<?=edit_form_input('code', set_value('code', $obj->code), '游戏代码')?>
						<?=edit_form_input('name', set_value('name', $obj->name), '游戏名称')?>
						<?=edit_form_dropdown('tag_id[]', parse_options($tagList,'id','tag'), set_value('tag_id[]',$selectedTags), '游戏标签',' multiple="multiple" id="select2_sample2"')?>
						<?=edit_form_textarea('description', set_value('description', $obj->description), '游戏说明')?>
						<?=edit_form_uploader('pic', set_uploader('pic', $obj->pic), '游戏图片')?>
						<?=edit_form_dropdown('platform',array(''=>'选择游戏平台...')+IOSS_Game::$gamePlatforms, set_value('platform', $obj->platform), '游戏platform')?>
						<?=edit_form_dropdown('type',array(''=>'选择游戏类型...')+IOSS_Game::$gameTypes, set_value('type', $obj->type), '游戏Type')?>
						<?=edit_form_input('sort', set_value('sort', $obj->sort), '排序')?>
						<?=edit_form_radio_list('status', Array('1'=>'正常', '0'=>'禁用'), set_value('status', ($thisMethod == 'edit'?$obj->status:'0')), '状态')?>
					</div>
					<?php $this->load->view('partials/submitButtons.tpl')?>
				<?=form_close()?>
			</div>
		</div>
		<!-- END SAMPLE FORM PORTLET-->
		<!-- BEGIN SAMPLE FORM PORTLET-->
	</div>
</div>
<!-- END PAGE CONTENT-->
<link href="<?=image_url('/static/assets/global/plugins/jstree/dist/themes/default/style.min.css')?>" rel="stylesheet" type="text/css"/>

<script type="text/javascript">
$(document).ready(function(){
	AjaxUploader.uploadTempUrl = "<?=site_url('/common/AjaxUpload/upload') . '/'  ?>";
	AjaxUploader.init();
});
</script>
